lib/commit: Use direct fd xattr operations again on regular files
authorColin Walters <walters@verbum.org>
Mon, 16 Oct 2017 20:08:26 +0000 (16:08 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 17 Oct 2017 16:43:02 +0000 (16:43 +0000)
commit3577b4a6c633f633cc906131abf889d5e333b795
treee99519fd8effa4c913c53198043e88666d361766
parenteeabd4baf7688f299d1c40d9cf6acccce2d532db
lib/commit: Use direct fd xattr operations again on regular files

A side effect of commit 8fe45362578a43260876134d6547ebd0bb2485c3 is that
we started listing all xattrs even for files with device/inode matches;
further, we did that using the dfd/name which means we went through
the `/proc` path, which is slower and uglier.

Noticed this in strace while looking at adoption code.

Closes: #1280
Approved by: jlebon
src/libostree/ostree-repo-commit.c